package com.xplay.xpocker.service.gaming;

import com.xplay.xpocker.dvo.AbstractRoom;
import com.xplay.xpocker.entity.GameRuMahjong;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xplay.xpocker.entity.GameRuMahjongLogs;
import com.xplay.xpocker.room.mahjong.dto.MahjongRoomInfo;
import com.xplay.xpocker.room.mahjong.dto.MahjongRoomRule;

import java.math.BigDecimal;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xplay
 * @since 2023-08-19
 */
public interface GameRuMahjongService extends IService<GameRuMahjong> {

    GameRuMahjong queryByRoomId(BigDecimal roomId);

    AbstractRoom<MahjongRoomRule, MahjongRoomInfo,GameRuMahjongLogs> queryRoomInfo(String roomCode);

    public void updateRoomInfo(AbstractRoom<MahjongRoomRule, MahjongRoomInfo, GameRuMahjongLogs> roomInfo);

}
